package com.feige.common.result;


/**
 * 枚举了一些常用API操作码
 *
 * @author carlo
 */
public enum EResultCode implements IResultCode {

    SUCCESS(200, "请求成功"),
    FAILED(500, "操作失败");

    private final Integer code;
    private final String desc;

    EResultCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
